<!doctype html>
<html><!-- InstanceBegin template="/Templates/tem.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>无标题文档</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="../css/bootstrap-4.3.1.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../css/style.css">
</head>

<body>
<div class="container-fluid">
  <div class="container">
    <nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light nav_my">
      <div class="container">
        <div class="collapse navbar-collapse" id="navbarSupportedContent1">
          <ul class="navbar-nav mr-auto nav_list">
            <li class="nav-item active"> <a class="nav-link fontsize" href="../index.html">首页</a> </li>
            <li class="nav-item active"> <a class="nav-link fontsize" href="dyclass.html">电影</a> </li>
            <li class="nav-item active"> <a class="nav-link fontsize" href="dsjclass.html">电视剧</a> </li>
            <li class="nav-item active"> <a class="nav-link fontsize" href="dmclass.html">动漫</a> </li>
          </ul>
          <form class="form-inline my-2 my-lg-0">
            <input class="form-control mr-sm-2" type="search" placeholder="输入关键字" aria-label="Search">
            <button class="btn btn-outline-success my-2 my-sm-0 button tree-default" type="submit"></button>
            <div class="wx tre-default"></div>
            <ul class="navbar-nav mr-auto logo">
              <li class="nav-item active"> <a class="nav-link" href="#">登录</a> </li>
              <li class="nav-item active"> <a class="nav-link" href="#">注册</a> </li>
            </ul>
          </form>
        </div>
      </div>
    </nav>
  </div>
</div>
    
<!-- InstanceBeginEditable name="EditRegion4" -->
  <!-- InstanceEndEditable -->
    
<!-- InstanceBeginEditable name="EditRegion3" -->
<div class="container">
  <div class="row bf_row" id="play">
            
              <span class="h5" id="h5"></span>
<!--           <img  class="iframe" src="../img/1280jiazai.png" alt="">  -->
          <iframe class="iframe" id="iframe" src="" frameborder="0"></iframe>
          
            <div class="bf_js">
                <p>剧集列表<span class="bf_color">【点击下方剧集才会播放哦！】</span></p>
               
                	<ul class="bf_ul" id="bf_play">
                	    <li><a href="#" onclick="list('')">第1集</a></li>
                	    
                	</ul>
               
               
                <div class="bf_jss">
                    <p>简介</p>
                    <span  id="play_js">讲述了结婚多年并育有一子的戏剧导演查理和女演员妮可因工作分居而不得不走向离婚，在这场为了争夺抚养权的离婚拉锯战中，关于爱情、婚姻和家庭真实感人的细枝末节牵动人心。两人的关系又将何去何从？</span>
                </div>
                
            </div>
         
  </div>
</div>
    

<!-- InstanceEndEditable -->

<div class="container-fluid footer1">
  <div class="container">
    <h2>VIP电影系统 - 搜索全网vip视频观看</h2>
    <span>加入我们</span> </div>
</div>
<div class="container-fluid footer2">
  <div class="container"> <span>本站提供的最新电影和电视剧资源均系收集于各大视频网站,本站只提供web页面服务,并不提供影片资源存储,也不参与录制、上传</span> <span>若本站收录的节目无意侵犯了贵司版权，请给网页底部邮箱地址来信,我们会及时处理和回复,谢谢。</span> <span>管理员邮箱：admin@abc.com</span> <span>© 2019 VIP电影系统  ICP备xxxx号  本站主题由 【VIP电影系统】 提供</span> </div>
</div>
<script src="../js/jquery-3.3.1.min.js"></script> 
<script src="../js/popper.min.js"></script> 
<script src="../js/bootstrap-4.3.1.js"></script>
<script src="../js/axios.min.js"></script>
<script type="text/javascript">
	var h5=document.getElementById("h5");
	var iframe=document.getElementById("iframe");
	var bf_play=document.getElementById("bf_play");
	var  play_js=document.getElementById("play_js");
	var dx;
	var arr;
	function GetQueryString(name) {
				
				   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
				   var r = window.location.search.substr(1).match(reg);
				   if (r!=null) return (r[2]); return null;
				}
				
				
				var sid ="";
				console.log(sid)
				if(GetQueryString("dy")!=null){
					sid="playdy?dy="+GetQueryString("dy");
				}else if(GetQueryString("dsj")!=null){
					sid="playdsj?dsj="+GetQueryString("dsj");
				}else if(GetQueryString("dm")!=null){
					sid="playdm?dm="+GetQueryString("dm");
				}
				console.log("这是啥"+sid)
				axios({
				     headers: {
				
				'Access-Control-Allow-Origin': '*',
				"Access-Control-Allow-Headers": "Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild",
				},//设置跨域请求头
				    method: "GET",//请求方式
				      url: "http://127.0.0.1:8080/"+sid//请求地址
				      
				    })
				      .then(function(res) {
				      	//返回值
				        console.log(res.data);
						h5.innerText=res.data[0][0].name;
						iframe.src="https://www.8090g.cn/jiexi/?url="+res.data[0][0].video[0];
						play_js.innerText=res.data[0][0].text;
						var list="";
						var videoif=res.data[0][0].video;
						console.log(res.data[0][0].video.length+"集数是多少")
						if(videoif instanceof Array){
							console.log("数组")
							for(var i=0;i<res.data[0][0].video.length;i++){
								arr=res.data[0][0].video;
								var j=i+1;
								list+="<li><a href='#' onclick='list("+i+")'>第"+j+"集</a></li>";
							
							}
						}else{
							console.log("对象")
							for(var i=0;i<1;i++){
								dx=res.data[0][0].video;
								var j=i+1;
								list+="<li><a href='#' onclick='list("+-1+")'>"+res.data[0][0].name+"</a></li>";
							
							}
						}
				        
						bf_play.innerHTML=list;
						
				      })
				      .catch(function(err) {
				        console.log(err);
				      });
					  
					  
				
				
				
				
				
				
				function list(href) {
					console.log();
					if(href==-1){
						iframe.src="https://www.8090g.cn/jiexi/?url="+arr[href];
					}else{
						iframe.src="https://www.8090g.cn/jiexi/?url="+dx;
					}
					
					
					
					}
					  
					  
					  
</script>



</body>
<!-- InstanceEnd --></html>
